
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>章节三:电子书搭建 · 信息学院</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="李航老师">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-flexible-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-lou/lou.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="chapter4.html" />
    
    
    <link rel="prev" href="chapter2.html" />
    

    </head>
    <body>
         

<div class="book">
  <div class="header-inner">
    <!-- LOGO -->
    <div class="logo"></div>
    <span class="title"></span>

    <!-- Search -->
    
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>


    <!-- Nav -->
    <ul class="header-nav">
      <li>
        <a href="https://space.bilibili.com/378936143" target="_blank">B站</a>
      </li><li>
        <a href="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzIzMjY0NjU5Ng==&scene=124#wechat_redirect" target="_blank">公众号</a>
      </li><li>
        <a href="https://edu.csdn.net/course/detail/32032" target="_blank">CSDN</a>
      </li>
    </ul>
  </div>

  <div class="book-summary">
    <div class="book-summary-title">文档目录</div>
     
    <nav role="navigation">


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    c语言程序设计
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../c/chapter1.html">
            
                <a href="../c/chapter1.html">
            
                    
                    章节一:初识C语言程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../c/chapter2.html">
            
                <a href="../c/chapter2.html">
            
                    
                    章节二:常用数据类型(整数)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../c/chapter3.html">
            
                <a href="../c/chapter3.html">
            
                    
                    章节三:常用数据类型(浮点型)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../c/chapter4.html">
            
                <a href="../c/chapter4.html">
            
                    
                    章节四:数据类型转换
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../c/chapter5.html">
            
                <a href="../c/chapter5.html">
            
                    
                    章节五:运算符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../c/chapter6.html">
            
                <a href="../c/chapter6.html">
            
                    
                    章节六:选择结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../c/chapter7.html">
            
                <a href="../c/chapter7.html">
            
                    
                    章节七:switch
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="../c/chapter8.html">
            
                <a href="../c/chapter8.html">
            
                    
                    章节八:for循环
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    Flask Web开发
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../flask/chapter1.html">
            
                <a href="../flask/chapter1.html">
            
                    
                    章节一:flask框架入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../flask/chapter2.html">
            
                <a href="../flask/chapter2.html">
            
                    
                    章节二:模版渲染
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../flask/chapter3.html">
            
                <a href="../flask/chapter3.html">
            
                    
                    章节三:html基本标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../flask/chapter4.html">
            
                <a href="../flask/chapter4.html">
            
                    
                    章节四:项目拆分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../flask/chapter5.html">
            
                <a href="../flask/chapter5.html">
            
                    
                    章节五:路由参数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../flask/chapter6.html">
            
                <a href="../flask/chapter6.html">
            
                    
                    章节六:请求与响应
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="../flask/chapter7.html">
            
                <a href="../flask/chapter7.html">
            
                    
                    章节七:flask-Cookie
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="../flask/chapter8.html">
            
                <a href="../flask/chapter8.html">
            
                    
                    章节八:模型数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="../flask/chapter9.html">
            
                <a href="../flask/chapter9.html">
            
                    
                    章节九:单表-增删查改一
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10" data-path="../flask/chapter10.html">
            
                <a href="../flask/chapter10.html">
            
                    
                    章节十:单表-增删查改二
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11" data-path="../flask/chapter11.html">
            
                <a href="../flask/chapter11.html">
            
                    
                    章节十一:图书管理系统
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    gitbook文档搭建
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="chapter1.html">
            
                <a href="chapter1.html">
            
                    
                    章节一:环境安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="chapter2.html">
            
                <a href="chapter2.html">
            
                    
                    章节二:typora使用
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.4.3" data-path="chapter3.html">
            
                <a href="chapter3.html">
            
                    
                    章节三:电子书搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="chapter4.html">
            
                <a href="chapter4.html">
            
                    
                    章节四:插件安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="chapter5.html">
            
                <a href="chapter5.html">
            
                    
                    章节五:部署
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>

</nav>
     
  </div>

  <!-- Content nav -->
  <div class="book-anchor">
    <div class="book-anchor-title"></div>

    <div class="book-anchor-body"></div>
  </div>

  <div class="book-body">
    
    <div class="body-inner">
       

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >章节三:电子书搭建</a>
    </h1>
</div>



      <div class="page-wrapper" tabindex="-1" role="main">
        <div class="page-inner">
          
<div id="book-search-results">
    <div class="search-noresults">
    
          <section class="normal markdown-section">
             <h2 id="&#x7535;&#x5B50;&#x4E66;&#x642D;&#x5EFA;">&#x7535;&#x5B50;&#x4E66;&#x642D;&#x5EFA;</h2>
<h2 id="&#x5B89;&#x88C5;-gitbook">&#x5B89;&#x88C5; Gitbook</h2>
<p>&#x4F7F;&#x7528;&#x4E0B;&#x9762;&#x547D;&#x4EE4;&#xFF0C;&#x5B89;&#x88C5; gitbook &#x5305;&#x3002;</p>
<pre><code>npm install -g gitbook-cli
</code></pre><h2 id="gitbook-&#x521D;&#x59CB;&#x5316;">Gitbook &#x521D;&#x59CB;&#x5316;</h2>
<p>&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x6587;&#x4EF6;&#x5939;&#xFF0C;&#x5E76;&#x8FDB;&#x5165;&#x5230;&#x8BE5;&#x6587;&#x4EF6;&#x5939;&#x4E2D;&#xFF0C;&#x6267;&#x884C;&#x4E0B;&#x9762;&#x547D;&#x4EE4;&#xFF0C;&#x521D;&#x59CB;&#x5316; gitbook &#x9879;&#x76EE;</p>
<pre><code>gitbook init
</code></pre><p>&#x6267;&#x884C;&#x7ED3;&#x679C;</p>
<pre><code class="lang-sh">info: create SUMMARY.md
info: initialization is finished
</code></pre>
<p>&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x521B;&#x5EFA;&#x4E86; SUMMARY.md &#x6587;&#x6863;&#xFF0C;&#x8FD9;&#x662F;&#x7535;&#x5B50;&#x4E66;&#x7684;&#x76EE;&#x5F55;&#x6587;&#x6863;&#x3002;</p>
<p>&#x7136;&#x540E;&#x521B;&#x5EFA;&#x4E00;&#x4E2A; REAMDE.md &#x6587;&#x6863;&#xFF0C;&#x7528;&#x6765;&#x5BF9;&#x8FD9;&#x4E2A;&#x9879;&#x76EE;&#x8FDB;&#x884C;&#x4ECB;&#x7ECD;&#x3002;</p>
<h2 id="npm-&#x521D;&#x59CB;&#x5316;">npm &#x521D;&#x59CB;&#x5316;</h2>
<p>&#x6267;&#x884C;&#x4E0B;&#x9762;&#x547D;&#x4EE4;&#xFF0C;&#x521D;&#x59CB;&#x5316;&#x4E3A; npm &#x9879;&#x76EE;&#x3002;</p>
<pre><code class="lang-sh">npm init
</code></pre>
<p>&#x547D;&#x4EE4;&#x4F1A;&#x63D0;&#x793A;&#x8F93;&#x5165;&#x9879;&#x76EE;&#x4FE1;&#x606F;&#xFF0C;&#x53EF;&#x9ED8;&#x8BA4;&#x4E0D;&#x586B;&#x5199;&#xFF0C;&#x76F4;&#x63A5;&#x56DE;&#x8F66;&#x3002;</p>
<p>&#x6700;&#x540E;&#xFF0C;&#x4F1A;&#x663E;&#x793A;&#x914D;&#x7F6E;&#x4FE1;&#x606F;&#xFF0C;&#x8F93;&#x5165;<code>yes</code>&#x56DE;&#x8F66;&#x5373;&#x53EF;&#x521D;&#x59CB;&#x5316;&#x5B8C;&#x6BD5;&#x3002;</p>
<p><img src="assets/image-20231207100459389.png" alt="image-20231207100459389"></p>
<p>&#x521D;&#x59CB;&#x5316;&#x6210;&#x529F;&#x540E;&#xFF0C;&#x7CFB;&#x7EDF;&#x4F1A;&#x81EA;&#x52A8;&#x5728;&#x5F53;&#x524D;&#x76EE;&#x5F55;&#x521B;&#x5EFA;<code>package.json</code>&#x6587;&#x4EF6;&#xFF0C;&#x8FD9;&#x662F; npm &#x9879;&#x76EE;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x3002;</p>
<h2 id="&#x7AE0;&#x8282;&#x914D;&#x7F6E;">&#x7AE0;&#x8282;&#x914D;&#x7F6E;</h2>
<p>GitBook &#x4F7F;&#x7528;&#x6587;&#x4EF6; <code>SUMMARY.md</code> &#x6765;&#x5B9A;&#x4E49;&#x4E66;&#x672C;&#x7684;&#x7AE0;&#x8282;&#x548C;&#x5B50;&#x7AE0;&#x8282;&#x7684;&#x7ED3;&#x6784;&#x3002;&#x6587;&#x4EF6; <code>SUMMARY.md</code> &#x88AB;&#x7528;&#x6765;&#x751F;&#x6210;&#x4E66;&#x672C;&#x5185;&#x5BB9;&#x7684;&#x9884;&#x89C8;&#x8868;&#x3002;</p>
<p><code>SUMMARY.md</code> &#x7684;&#x683C;&#x5F0F;&#x662F;&#x4E00;&#x4E2A;&#x7B80;&#x5355;&#x7684;&#x94FE;&#x63A5;&#x5217;&#x8868;&#xFF0C;&#x94FE;&#x63A5;&#x7684;&#x540D;&#x5B57;&#x662F;&#x7AE0;&#x8282;&#x7684;&#x540D;&#x5B57;&#xFF0C;&#x94FE;&#x63A5;&#x7684;&#x6307;&#x5411;&#x662F;&#x7AE0;&#x8282;&#x6587;&#x4EF6;&#x7684;&#x8DEF;&#x5F84;&#x3002;</p>
<p>&#x5B50;&#x7AE0;&#x8282;&#x88AB;&#x7B80;&#x5355;&#x7684;&#x5B9A;&#x4E49;&#x4E3A;&#x4E00;&#x4E2A;&#x5185;&#x5D4C;&#x4E8E;&#x7236;&#x7AE0;&#x8282;&#x7684;&#x5217;&#x8868;&#x3002;</p>
<pre><code class="lang-markdown"><span class="hljs-section"># &#x6982;&#x8981;</span>

<span class="hljs-bullet">- </span>[<span class="hljs-string">&#x7AE0;&#x8282;&#x4E00;</span>](<span class="hljs-link">chapter1.md</span>)
<span class="hljs-bullet">- </span>[<span class="hljs-string">&#x7AE0;&#x8282;&#x4E8C;</span>](<span class="hljs-link">chapter2.md</span>)
<span class="hljs-bullet">- </span>[<span class="hljs-string">&#x7AE0;&#x8282;&#x4E09;</span>](<span class="hljs-link">chapter3.md</span>)
</code></pre>
<pre><code class="lang-markdown"><span class="hljs-section"># &#x6982;&#x8981;</span>

<span class="hljs-bullet">- </span>[<span class="hljs-string">&#x7B2C;&#x4E00;&#x7AE0;</span>](<span class="hljs-link">part1/README.md</span>)
  - [<span class="hljs-string">1.1 &#x7B2C;&#x4E00;&#x8282;</span>](<span class="hljs-link">part1/writing.md</span>)
  - [<span class="hljs-string">1.2 &#x7B2C;&#x4E8C;&#x8282;</span>](<span class="hljs-link">part1/gitbook.md</span>)
<span class="hljs-bullet">- </span>[<span class="hljs-string">&#x7B2C;&#x4E8C;&#x7AE0;</span>](<span class="hljs-link">part2/README.md</span>)
  - [<span class="hljs-string">2.1 &#x7B2C;&#x4E00;&#x8282;</span>](<span class="hljs-link">part2/feedback_please.md</span>)
  - [<span class="hljs-string">2.2 &#x7B2C;&#x4E8C;&#x8282;</span>](<span class="hljs-link">part2/better_tools.md</span>)
</code></pre>
<h2 id="&#x542F;&#x52A8;&#x9879;&#x76EE;">&#x542F;&#x52A8;&#x9879;&#x76EE;</h2>
<p>&#x5728;<code>package.json</code>&#x6587;&#x4EF6;&#x7684;<code>scripts</code>&#x4E2D;&#x914D;&#x7F6E;&#x5982;&#x4E0B;&#x7684;&#x811A;&#x672C;&#x547D;&#x4EE4;&#xFF1A;</p>
<pre><code class="lang-json"><span class="hljs-string">&quot;scripts&quot;</span>: {
    <span class="hljs-string">&quot;serve&quot;</span>: <span class="hljs-string">&quot;gitbook serve&quot;</span>,
    <span class="hljs-string">&quot;build&quot;</span>: <span class="hljs-string">&quot;gitbook build&quot;</span>
}
</code></pre>
<p>&#x5206;&#x522B;&#x662F; gitbook &#x5728;&#x672C;&#x5730;&#x542F;&#x52A8;&#x7684;&#x547D;&#x4EE4;&#xFF0C;&#x548C; gitbook &#x6253;&#x5305;&#x6210; HTML &#x9759;&#x6001;&#x6587;&#x4EF6;&#x7684;&#x547D;&#x4EE4;&#x3002;</p>
<p>&#x5BF9;&#x4E8E;&#x672C;&#x5730;&#x6F14;&#x793A;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x901A;&#x8FC7;&#x4E0B;&#x9762;&#x547D;&#x4EE4;&#x542F;&#x52A8;&#x3002;</p>
<pre><code class="lang-sh">npm run serve
</code></pre>
<p>&#x8FD9;&#x6761;&#x547D;&#x4EE4;&#x5176;&#x5B9E;&#x5C31;&#x662F;&#x6267;&#x884C;&#x4E86;<code>package.json</code>&#x6587;&#x4EF6;&#x7684;<code>scripts</code>&#x4E2D;&#x7684;<code>serve</code>&#x811A;&#x672C;&#xFF0C;&#x5373;<code>gitbook serve</code>&#x3002;</p>
<p>&#x542F;&#x52A8;&#x6210;&#x529F;&#x540E;&#xFF0C;&#x5C31;&#x53EF;&#x4EE5;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x8F93;&#x5165;<code>http://localhost:4000/</code>&#xFF0C;&#x5982;&#x56FE;&#x6240;&#x793A;&#x3002;</p>
<p><img src="assets/image-20231207100801311.png" alt="image-20231207100801311"></p>
<h2 id="&#x5FFD;&#x7565;&#x6587;&#x4EF6;">&#x5FFD;&#x7565;&#x6587;&#x4EF6;</h2>
<p>&#x4EFB;&#x4F55;&#x5728;&#x6587;&#x4EF6;&#x5939;&#x4E0B;&#x7684;&#x6587;&#x4EF6;&#xFF0C;&#x5728;&#x6700;&#x540E;&#x751F;&#x6210;&#x7535;&#x5B50;&#x4E66;&#x65F6;&#x90FD;&#x4F1A;&#x88AB;&#x62F7;&#x8D1D;&#x5230;&#x8F93;&#x51FA;&#x76EE;&#x5F55;&#x4E2D;&#xFF0C;&#x5982;&#x679C;&#x60F3;&#x8981;&#x5FFD;&#x7565;&#x67D0;&#x4E9B;&#x6587;&#x4EF6;&#xFF0C;&#x548C; Git &#x4E00;&#x6837;&#xFF0C; Gitbook &#x4F1A;&#x4F9D;&#x6B21;&#x8BFB;&#x53D6; <code>.gitignore</code>, <code>.bookignore</code> &#x548C; <code>.ignore</code> &#x6587;&#x4EF6;&#x6765;&#x5C06;&#x4E00;&#x4E9B;&#x6587;&#x4EF6;&#x548C;&#x76EE;&#x5F55;&#x6392;&#x9664;&#x3002;</p>
<h2 id="&#x914D;&#x7F6E;&#x6587;&#x4EF6;">&#x914D;&#x7F6E;&#x6587;&#x4EF6;</h2>
<p>Gitbook &#x5728;&#x7F16;&#x8BD1;&#x4E66;&#x7C4D;&#x7684;&#x65F6;&#x5019;&#x4F1A;&#x8BFB;&#x53D6;&#x4E66;&#x7C4D;&#x6E90;&#x7801;&#x9876;&#x5C42;&#x76EE;&#x5F55;&#x4E2D;&#x7684; <code>book.js</code> &#x6216;&#x8005; <code>book.json</code>&#xFF0C;&#x8FD9;&#x91CC;&#x4EE5; <code>book.json</code> &#x4E3A;&#x4F8B;&#xFF0C;&#x53C2;&#x8003; <a href="https://github.com/GitbookIO/gitbook" target="_blank">gitbook &#x6587;&#x6863;</a> &#x53EF;&#x4EE5;&#x77E5;&#x9053;&#xFF0C;<code>book.json</code> &#x5E38;&#x7528;&#x7684;&#x914D;&#x7F6E;&#x5982;&#x4E0B;&#x3002;</p>
<pre><code class="lang-js"><span class="hljs-keyword">let</span> plugins = [
  <span class="hljs-string">&apos;-lunr&apos;</span>, <span class="hljs-comment">// &#x9ED8;&#x8BA4;&#x63D2;&#x4EF6;&#xFF0C;&#x65E0;&#x9700;&#x5F15;&#x7528;</span>
  <span class="hljs-string">&apos;-sharing&apos;</span>, <span class="hljs-comment">// &#x9ED8;&#x8BA4;&#x63D2;&#x4EF6;&#xFF0C;&#x65E0;&#x9700;&#x5F15;&#x7528;</span>
  <span class="hljs-string">&apos;-search&apos;</span>, <span class="hljs-comment">// &#x9ED8;&#x8BA4;&#x63D2;&#x4EF6;&#xFF0C;&#x65E0;&#x9700;&#x5F15;&#x7528;</span>
  <span class="hljs-string">&apos;-favicon&apos;</span>, <span class="hljs-comment">// &#x9ED8;&#x8BA4;&#x63D2;&#x4EF6;&#xFF0C;&#x65E0;&#x9700;&#x5F15;&#x7528;</span>
  <span class="hljs-string">&apos;code&apos;</span>,
  <span class="hljs-string">&apos;expandable-chapters&apos;</span>,
  <span class="hljs-string">&apos;theme-lou&apos;</span>,
  <span class="hljs-string">&apos;back-to-top-button&apos;</span>,
  <span class="hljs-string">&apos;search-pro&apos;</span>,
  <span class="hljs-string">&apos;flexible-alerts&apos;</span>,
];
<span class="hljs-keyword">if</span> (process.env.NODE_ENV == <span class="hljs-string">&apos;dev&apos;</span>) plugins.push(<span class="hljs-string">&apos;livereload&apos;</span>);

<span class="hljs-built_in">module</span>.exports = {
  title: <span class="hljs-string">&apos;&#x4FE1;&#x606F;&#x5B66;&#x9662;&apos;</span>,
  author: <span class="hljs-string">&apos;&#x674E;&#x822A;&#x8001;&#x5E08;&apos;</span>,
  lang: <span class="hljs-string">&apos;zh-cn&apos;</span>,
  description: <span class="hljs-string">&apos;Gitbook&#x7535;&#x5B50;&#x4E66;&#x793A;&#x4F8B;&#x9879;&#x76EE;&apos;</span>,
  plugins,
  pluginsConfig: {
    <span class="hljs-comment">// gitbook-plugin-code &#x63D2;&#x4EF6;&#x914D;&#x7F6E;</span>
    code: {
      copyButtons: <span class="hljs-literal">true</span>, <span class="hljs-comment">// code&#x63D2;&#x4EF6;&#x590D;&#x5236;&#x6309;&#x94AE;</span>
    },
    <span class="hljs-comment">// gitbook-plugin-theme-lou &#x4E3B;&#x9898;&#x63D2;&#x4EF6;&#x914D;&#x7F6E;</span>
    <span class="hljs-string">&apos;theme-lou&apos;</span>: {
      color: <span class="hljs-string">&apos;#2096FF&apos;</span>, <span class="hljs-comment">// &#x4E3B;&#x9898;&#x8272;</span>
      favicon: <span class="hljs-string">&apos;assets/favicon.ico&apos;</span>, <span class="hljs-comment">// &#x7F51;&#x7AD9;&#x56FE;&#x6807;</span>
      logo: <span class="hljs-string">&apos;assets/logo.png&apos;</span>, <span class="hljs-comment">// Logo&#x56FE;</span>
      copyrightLogo: <span class="hljs-string">&apos;assets/copyright.png&apos;</span>, <span class="hljs-comment">// &#x80CC;&#x666F;&#x6C34;&#x5370;&#x7248;&#x6743;&#x56FE;</span>
      autoNumber: <span class="hljs-number">3</span>, <span class="hljs-comment">// &#x81EA;&#x52A8;&#x7ED9;&#x6807;&#x9898;&#x6DFB;&#x52A0;&#x7F16;&#x53F7;(&#x5982;1.1.1)</span>
      titleColor: {
        <span class="hljs-comment">// &#x81EA;&#x5B9A;&#x4E49;&#x6807;&#x9898;&#x989C;&#x8272;(&#x4E0D;&#x8BBE;&#x7F6E;&#x5219;&#x9ED8;&#x8BA4;&#x4F7F;&#x7528;&#x4E3B;&#x9898;&#x8272;)</span>
        h1: <span class="hljs-string">&apos;#8b008b&apos;</span>, <span class="hljs-comment">// &#x4E00;&#x7EA7;&#x6807;&#x9898;&#x989C;&#x8272;</span>
        h2: <span class="hljs-string">&apos;#20b2aa&apos;</span>, <span class="hljs-comment">// &#x4E8C;&#x7EA7;&#x6807;&#x9898;&#x989C;&#x8272;</span>
        h3: <span class="hljs-string">&apos;#a52a2a&apos;</span>, <span class="hljs-comment">// &#x4E09;&#x7EA7;&#x6807;&#x9898;&#x989C;&#x8272;</span>
      },
      forbidCopy: <span class="hljs-literal">true</span>, <span class="hljs-comment">// &#x9875;&#x9762;&#x662F;&#x5426;&#x7981;&#x6B62;&#x590D;&#x5236;&#xFF08;&#x4E0D;&#x5F71;&#x54CD;code&#x63D2;&#x4EF6;&#x7684;&#x590D;&#x5236;&#xFF09;</span>
      <span class="hljs-string">&apos;search-placeholder&apos;</span>: <span class="hljs-string">&apos;&#x4F17;&#x91CC;&#x5BFB;&#x4ED6;&#x5343;&#x767E;&#x5EA6;&apos;</span>, <span class="hljs-comment">// &#x641C;&#x7D22;&#x6846;&#x9ED8;&#x8BA4;&#x6587;&#x672C;</span>
      <span class="hljs-string">&apos;hide-elements&apos;</span>: [<span class="hljs-string">&apos;.summary .gitbook-link&apos;</span>], <span class="hljs-comment">// &#x9700;&#x8981;&#x9690;&#x85CF;&#x7684;&#x6807;&#x7B7E;</span>
      copyright: {
        author: <span class="hljs-string">&apos;&#x674E;&#x822A;&#x8001;&#x5E08;&apos;</span>, <span class="hljs-comment">// &#x5E95;&#x90E8;&#x7248;&#x6743;&#x5C55;&#x793A;&#x7684;&#x4F5C;&#x8005;&#x540D;</span>
      },
    },
  },
  variables: {
    themeLou: {
      <span class="hljs-comment">// &#x9876;&#x90E8;&#x5BFC;&#x822A;&#x680F;&#x914D;&#x7F6E;</span>
      nav: [
        {
          target: <span class="hljs-string">&apos;_blank&apos;</span>, <span class="hljs-comment">// &#x8DF3;&#x8F6C;&#x65B9;&#x5F0F;: &#x6253;&#x5F00;&#x65B0;&#x9875;&#x9762;</span>
          url: <span class="hljs-string">&apos;https://space.bilibili.com/378936143&apos;</span>, <span class="hljs-comment">// &#x8DF3;&#x8F6C;&#x9875;&#x9762;</span>
          name: <span class="hljs-string">&apos;B&#x7AD9;&apos;</span>, <span class="hljs-comment">// &#x5BFC;&#x822A;&#x540D;&#x79F0;</span>
        },
        {
          target: <span class="hljs-string">&apos;_blank&apos;</span>, <span class="hljs-comment">// &#x8DF3;&#x8F6C;&#x65B9;&#x5F0F;: &#x6253;&#x5F00;&#x65B0;&#x9875;&#x9762;</span>
          url: <span class="hljs-string">&apos;https://mp.weixin.qq.com/mp/profile_ext?action=home&amp;__biz=MzIzMjY0NjU5Ng==&amp;scene=124#wechat_redirect&apos;</span>, <span class="hljs-comment">// &#x8DF3;&#x8F6C;&#x9875;&#x9762;</span>
          name: <span class="hljs-string">&apos;&#x516C;&#x4F17;&#x53F7;&apos;</span>, <span class="hljs-comment">// &#x5BFC;&#x822A;&#x540D;&#x79F0;</span>
        },
        {
          target: <span class="hljs-string">&apos;_blank&apos;</span>, <span class="hljs-comment">// &#x8DF3;&#x8F6C;&#x65B9;&#x5F0F;: &#x6253;&#x5F00;&#x65B0;&#x9875;&#x9762;</span>
          url: <span class="hljs-string">&apos;https://edu.csdn.net/course/detail/32032&apos;</span>, <span class="hljs-comment">// &#x8DF3;&#x8F6C;&#x9875;&#x9762;</span>
          name: <span class="hljs-string">&apos;CSDN&apos;</span>, <span class="hljs-comment">// &#x5BFC;&#x822A;&#x540D;&#x79F0;</span>
        },
      ]
      <span class="hljs-comment">// &#x5E95;&#x90E8;&#x6253;&#x8D4F;&#x914D;&#x7F6E;</span>
      <span class="hljs-comment">// footer: {</span>
      <span class="hljs-comment">//   donate: {</span>
      <span class="hljs-comment">//     button: &apos;&#x8D5E;&#x8D4F;&apos;, // &#x6253;&#x8D4F;&#x6309;&#x94AE;</span>
      <span class="hljs-comment">//     avatar: &apos;assets/avatar.png&apos;, // &#x5934;&#x50CF;&#x5730;&#x5740;</span>
      <span class="hljs-comment">//     nickname: &apos;&#x4F5C;&#x8005;&apos;, // &#x663E;&#x793A;&#x6253;&#x8D4F;&#x6635;&#x79F0;</span>
      <span class="hljs-comment">//     message: &apos;&#x968F;&#x610F;&#x6253;&#x8D4F;&#xFF0C;&#x4F46;&#x4E0D;&#x8981;&#x8D85;&#x8FC7;&#x4E00;&#x987F;&#x65E9;&#x9910;&#x94B1;&#xFF01;&#x2615;&#xFE0F;&apos;, // &#x6253;&#x8D4F;&#x6D88;&#x606F;&#x6587;&#x672C;</span>
      <span class="hljs-comment">//     text: &apos;&#x300E; &#x8D60;&#x4EBA;&#x73AB;&#x7470; &#x1F339; &#x624B;&#x6709;&#x4F59;&#x9999; &#x300F;&apos;,</span>
      <span class="hljs-comment">//     wxpay: &apos;assets/donate-code-wxpay.png&apos;, // &#x5FAE;&#x4FE1;&#x6536;&#x6B3E;&#x7801;</span>
      <span class="hljs-comment">//     alipay: &apos;assets/donate-code-alipay.png&apos;, // &#x652F;&#x4ED8;&#x5B9D;&#x6536;&#x6B3E;&#x7801;</span>
      <span class="hljs-comment">//   },</span>
      <span class="hljs-comment">//   copyright: true, // &#x663E;&#x793A;&#x7248;&#x6743;</span>
      <span class="hljs-comment">// },</span>
    },
  },
};
</code></pre>
<h3 id="&#x63D2;&#x4EF6;&#x914D;&#x7F6E;">&#x63D2;&#x4EF6;&#x914D;&#x7F6E;</h3>
<p><img src="assets/image-20231207101151054.png" alt="image-20231207101151054"></p>
<p>package.json</p>
<pre><code class="lang-json">{
  <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;flask&quot;</span>,
  <span class="hljs-string">&quot;version&quot;</span>: <span class="hljs-string">&quot;1.0.0&quot;</span>,
  <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;&quot;</span>,
  <span class="hljs-string">&quot;main&quot;</span>: <span class="hljs-string">&quot;index.js&quot;</span>,
  <span class="hljs-string">&quot;scripts&quot;</span>: {
    <span class="hljs-string">&quot;serve&quot;</span>: <span class="hljs-string">&quot;gitbook serve&quot;</span>,
    <span class="hljs-string">&quot;build&quot;</span>: <span class="hljs-string">&quot;gitbook build&quot;</span>
  },
  <span class="hljs-string">&quot;author&quot;</span>: <span class="hljs-string">&quot;&quot;</span>,
  <span class="hljs-string">&quot;license&quot;</span>: <span class="hljs-string">&quot;ISC&quot;</span>,
  <span class="hljs-string">&quot;dependencies&quot;</span>: {
    <span class="hljs-string">&quot;gitbook-plugin-back-to-top-button&quot;</span>: <span class="hljs-string">&quot;^0.1.4&quot;</span>,
    <span class="hljs-string">&quot;gitbook-plugin-code&quot;</span>: <span class="hljs-string">&quot;^0.1.0&quot;</span>,
    <span class="hljs-string">&quot;gitbook-plugin-expandable-chapters&quot;</span>: <span class="hljs-string">&quot;^0.2.0&quot;</span>,
    <span class="hljs-string">&quot;gitbook-plugin-flexible-alerts&quot;</span>: <span class="hljs-string">&quot;^1.0.4&quot;</span>,
    <span class="hljs-string">&quot;gitbook-plugin-search-pro&quot;</span>: <span class="hljs-string">&quot;^2.0.2&quot;</span>,
    <span class="hljs-string">&quot;gitbook-plugin-theme-lou&quot;</span>: <span class="hljs-string">&quot;^1.1.0&quot;</span>
  }
}
</code></pre>
 
          </section>
          
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>
 
        </div>
      </div>
      
    </div>

     
    <a
      href="chapter2.html"
      class="navigation navigation-prev "
      aria-label="Previous page: 章节二:typora使用"
    >
      <i class="fa fa-angle-left"></i>
    </a>
     
    <a
      href="chapter4.html"
      class="navigation navigation-next "
      aria-label="Next page: 章节四:插件安装"
    >
      <i class="fa fa-angle-right"></i>
    </a>
      
  </div>
  <script>
    function showModal() {
      document.getElementsByClassName("mask")[0].style.display = "block";
      document.getElementsByClassName("donate-modal")[0].style.display =
        "block";
    }
    // 切换赞赏码
    function showDonateImg(num) {
      let alipay = "";
      let wxpay = ""
      if(num){
        wxpay = "hidden"
      }else{
        alipay = "hidden"
      }
      document.getElementById("wxpay-code").hidden = wxpay;
      document.getElementById("alipay-code").hidden = alipay;
      document.getElementsByName("pay-way")[num].checked = "checked";
    }

    // 关闭赞赏框
    function closeDonateModal() {
      document.getElementsByClassName("mask")[0].style.display = "none";
      document.getElementsByClassName("donate-modal")[0].style.display = "none";
    }

    var gitbook = gitbook || [];
    gitbook.push(function () {
      gitbook.page.hasChanged({"page":{"title":"章节三:电子书搭建","level":"1.4.3","depth":2,"next":{"title":"章节四:插件安装","level":"1.4.4","depth":2,"path":"book/chapter4.md","ref":"book/chapter4.md","articles":[]},"previous":{"title":"章节二:typora使用","level":"1.4.2","depth":2,"path":"book/chapter2.md","ref":"book/chapter2.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-sharing","-search","-favicon","code","expandable-chapters","theme-lou","back-to-top-button","search-pro","flexible-alerts","chapter-fold"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"chapter-fold":{},"search-pro":{},"code":{"copyButtons":true},"theme-lou":{"hide-elements":[".summary .gitbook-link"],"color":"#2096FF","copyright":{"author":"李航老师"},"forbidCopy":true,"logo":"assets/logo.png","titleColor":{"h1":"#8b008b","h2":"#20b2aa","h3":"#a52a2a"},"search-placeholder":"众里寻他千百度","copyrightLogo":"assets/copyright.png","favicon":"assets/favicon.ico","autoNumber":3},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"back-to-top-button":{},"flexible-alerts":{"style":"callout","note":{"label":"Note","icon":"fa fa-info-circle","className":"info"},"tip":{"label":"Tip","icon":"fa fa-lightbulb-o","className":"tip"},"warning":{"label":"Warning","icon":"fa fa-exclamation-triangle","className":"warning"},"danger":{"label":"Attention","icon":"fa fa-ban","className":"danger"}},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"李航老师","lang":"zh-cn","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"themeLou":{"nav":[{"target":"_blank","url":"https://space.bilibili.com/378936143","name":"B站"},{"target":"_blank","url":"https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzIzMjY0NjU5Ng==&scene=124#wechat_redirect","name":"公众号"},{"target":"_blank","url":"https://edu.csdn.net/course/detail/32032","name":"CSDN"}]}},"title":"信息学院","gitbook":"*","description":"Gitbook电子书示例项目"},"file":{"path":"book/chapter3.md","mtime":"2023-12-07T02:26:09.196Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-12-07T03:21:22.004Z"},"basePath":"..","book":{"language":""}});
    });
  </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-flexible-alerts/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-lou/jweixin-1.6.0.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-lou/lou.js"></script>
        
    

    </body>
</html>

